package com.huazi.user.registration.entity;

/**
 * 用户的实体类
 */
public class User {
    //这是用户的账号
    private Integer id;
    //这是用户的密码
    private String pwd;
    //这是用户的身份证号码
    private String idCard;
    //这是用户的姓名
    private String name;
    //这是用户的性别
    private String sex;
    //这是用户的手机号码
    private String phone;
    //这是用户的年龄
    private Integer age;
    //这是用户的余额
    private Double money;

    public User(Integer id, String pwd, String idCard, String name, String sex, String phone, Integer age, Double money) {
        this.id = id;
        this.pwd = pwd;
        this.idCard = idCard;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.age = age;
        this.money = money;
    }

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getMoney() {
        return money;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", pwd='" + pwd + '\'' +
                ", idCard='" + idCard + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", age=" + age +
                ", money=" + money +
                '}';
    }

    public void setMoney(Double money) {
        this.money = money;
    }
}
